import request from '@/utils/request'

// 创建客户管理信息
export function createHouseClientInfo(data) {
  return request({
    url: '/system/house-client-info/create',
    method: 'post',
    data: data
  })
}

// 更新客户管理信息
export function updateHouseClientInfo(data) {
  return request({
    url: '/system/house-client-info/update',
    method: 'put',
    data: data
  })
}

// 删除客户管理信息
export function deleteHouseClientInfo(id) {
  return request({
    url: '/system/house-client-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得客户管理信息
export function getHouseClientInfo(id) {
  return request({
    url: '/system/house-client-info/get?id=' + id,
    method: 'get'
  })
}

// 获得客户管理信息分页
export function getHouseClientInfoPage(params) {
  return request({
    url: '/system/house-client-info/page',
    method: 'get',
    params
  })
}
// 导出客户管理信息 Excel
export function exportHouseClientInfoExcel(params) {
  return request({
    url: '/system/house-client-info/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}